import request from '@/services/request'

/**
 * 用户注册
 * @param data regParams
 * @returns
 */
export type regParams = {
  accountOrPhone: string
  passWord: string
}
export const userRegService = (data: regParams) => {
  return request.post('/user/api/v1/info/register', data)
}

/**
 * 用户登录接口
 * @param data logParams
 * @returns
 */
export type logParams = {
  accountOrPhone: string
  passWord: string
}
export const userLogService = (data: logParams) => {
  return request.post('/user/api/v1/info/login', data)
}
